package com.ge.modules.api.service;

import com.ge.modules.entity.TbOrderEntity;
import com.ge.modules.entity.TbOrderHeaderEntity;
import com.ge.modules.entity.TbUserCardEntity;

import java.util.List;
import java.util.Map;

/**
 * 订单

 * 
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-04-11 17:28:43
 */
public interface TbOrderService {
	
	TbOrderEntity queryObject(TbOrderEntity tbOrderEntity);
	
	List<TbOrderEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(TbOrderEntity order);
	
	void update(TbOrderEntity order);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	void updateBatch(Integer[] ids);

	void orderAndOrderHeader(List<TbOrderEntity> tbOrderEntityList, TbOrderHeaderEntity tbOrderHeaderEntity);

	Map queryOrdersAndTotal(Map<String, Object> map);

	void updateOrderAndUserCard(TbOrderEntity order,TbUserCardEntity userCard);

	void updateOrder(TbOrderEntity order);

	int countStoreUsers(Map<String, Object> map);
}
